package org.starapp.utils;

public class NumberUtils {

    public static boolean isNumber(String string)
    {
      	boolean result=false;
      	if(string==null||string.equals(""))
      	{
      		throw new RuntimeException("isNumber函数参数不能为空"+Number.class.getName());
      	}
      	byte[] chars=string.getBytes();
      	for(int i=0;i<chars.length;i++)
      	{
      		if((int)chars[i]>=48||(int)chars[i]<=57)
      		{
      			continue;
      		}else
      		{
      			result=true;
      			break;
      		}
      	}
      	return result;
    }
}
